/**   
 */
 
layui.define(['form'], function(exports){
  var $ = layui.$
  ,layer = layui.layer
  ,laytpl = layui.laytpl
  ,setter = layui.setter
  ,view = layui.view
  ,admin = layui.admin
  ,form = layui.form;

  var $body = $('body');
  
  //自定义验证
  form.verify({
  	//密码
    pass: [
      /^[\S]{6,12}$/, '密码必须6到12位，且不能出现空格'
    ]
    
    //确认密码
    ,repass: function(value){
      if(value !== $('#rePassword').val()){
        return '两次密码输入不一致';
      }
    }
  });

  //对外暴露的接口
  exports('verify', {});
});